# 本文件主要对 xadmin 进行配置

import xadmin
import xadmin.views


class GlobalSettings(object):
    # 显示的标题
    site_title = "为己后台管理系统"
    # 页脚显示
    site_footer = "麦茹峰 201715210125"
    # 侧边栏
    # menu_style = "accordion"


class BaseSettings(object):
    # 启用主题
    enable_themes = True
    # 主题列表
    use_bootswatch = True


xadmin.site.register(xadmin.views.CommAdminView, GlobalSettings)
xadmin.site.register(xadmin.views.BaseAdminView, BaseSettings)
